package com.maserb.monitor.service.schoolStudent;

import com.maserb.monitor.entity.SysCode;
import com.maserb.monitor.entity.schoolStudent.SchoolStudentEntity;
import com.maserb.monitor.entity.schoolStudent.SchoolTimeTableEntity;
import com.maserb.monitor.entity.schoolStudent.StudentAchieveEntity;
import com.maserb.monitor.model.StudentAchieveModel;
import com.maserb.monitor.model.StudentAchieveScoreModel;
import com.maserb.monitor.repository.schoolStudent.StudentAchieveRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


public interface StudentAchieveService extends JpaSpecificationService<StudentAchieveRepository, StudentAchieveRepository, StudentAchieveEntity, String> {



     /*List<SchoolStudentEntity> findAll(String name, String orgId, String studentId, String schoolId, String sex);

    Integer countByClass(String classId);

    List<SchoolStudentEntity> findByClazzId(String clazzId);

    List<SchoolStudentEntity> findByParent(SchoolStudentParentEntity parent);*/

    Page<StudentAchieveEntity> findAll(Pageable var1,String userId, String name,String studentId, final String term, final String clazzId);

    List<StudentAchieveEntity> findByStudentOrderByCreateTime(String startTime, String endTime,String studentId);

    List<StudentAchieveEntity> findByStudentByCreateTime(SchoolStudentEntity student);

    Double[] findAchieveByClazz(String startTime, String endTime, String clazzId);

    Double[] findAchieveByClazzAndCode(String startTime, String endTime, String clazzId, SysCode code);

    void saveByFile(List<StudentAchieveScoreModel>list,String term);

    List<StudentAchieveEntity> findAchieveByClazzOrderByTotalScoreDesc(String clazzId,String term);

}